#include <iostream>
#include <string>
#include <vector>
using namespace std;

enum{
    one,
    two,
    three,
    four,
    five,
    king
};

string compare_s(string left,string right){
    // int l_s = 0;
    // int r_s = 0;
    string ss;
    vector<string>left_v;
    vector<string>right_v;
    for (int i = 0; i < left.length(); i++){
        if(left[i] == ' '){
            // l_s++;
            continue;
        }
        ss = left[i];
        left_v.push_back(ss);
    }
    for (int i = 0; i < right.length(); i++){
        if(right[i] == ' '){
            // l_s++;
            continue;
        }
        ss = right[i];
        right_v.push_back(ss);
    } 
    
}

int main(int agrc, char ** agrv){
    string input_s;
    int len;
    int left_len;
    int right_len;
    string left;
    string right;
    while(getline(cin,input_s)){
        len = input_s.length();
        for (int i = 0; i < len; i ++){
            if (input_s[i] == '-')
            left_len = i;
            break;
        }
        for(int i = 0; i <=left_len; i++){
            if(input_s[i] == ' ')
                continue;
            left += input_s[i];
        }
        for(int i = left_len+1;i < len; i++){
            if(input_s[i] == ' ')
                continue;
            right += input_s[i];
        }
        compare_s(left, right);


    }
    return 0;
}